<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="shortcut icon" type="image/x-icon" th:href= "@{/static/img/timg.jpg}">
    <!--    主页css-->
    <link rel="stylesheet" href="../../static/css/backstage_index.css">
<!--本页css-->
    <link rel="stylesheet" href="../../static/css/backstage_addcommodity.css">
    <link rel="stylesheet" href="../../static/css/backstage_user.css">
    <link rel="stylesheet" href="../../static/css/bootstrap.min.css">
    <link rel="stylesheet" href="../../static/css/merchandise.css">

</head>
<body>
<div th:include="/like/business_content::seam">
</div>
<!--内容-->
<div class="home_page">
    <form action="/administrator/selectOrderLikeDate" method="get">
        <div class="me_search">
            <input name="date" type="text" class="me_input" placeholder="请输入查找信息" th:value="${selectOrder}">
        </div>
        <div class="btn_search">
            <input type="submit" value="搜索">
        </div>
    </form>
    <div style="clear: both"></div>
    <!--            模态框-->
    <!-- 按钮触发模态框 -->

    <!--    主页面-->
    <div id="container_user" style="margin-top: 25px">
        <div class="tab_manager_title">
            <!--                用户-->
        </div>
        <div class="information">
            <div class="container">
                <table class="table table-striped table-bordered table-hover table-condensed">
                    <thead>
                    <tr>
                        <th>ID</th>
                        <th>订单编号</th>
                        <th>支付状态</th>
                        <th>创建时间</th>
                        <th>单价</th>
                        <th>买家电话</th>
                        <th>买家ID</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr th:each="orderDate:${order.getList()}">
                        <td th:text="${orderDate.getOrderId()}"></td>
                        <td th:if="${orderDate.getConsignTime()!='0'}" th:text="${orderDate.getConsignTime()}"></td>
                        <td th:if="${orderDate.getConsignTime()=='0'}">支付后，生成</td>
                        <td th:if="${orderDate.getStatus()}">已支付</td>
                        <td th:if="${!orderDate.getStatus()}">未支付</td>
                        <td th:text="${orderDate.getCreateTime()}"></td>
                        <td th:text="${orderDate.getPrice()}"></td>
                        <td th:if="${orderDate.getBuyerNick()!=null}" th:text="${orderDate.getBuyerNick()}"></td>
                        <td th:if="${orderDate.getBuyerNick()==null}">未填写</td>
                        <td th:text="${orderDate.getUserId()}"></td>
<!--                        <td th:text="${orderDate}"></td>-->
                        <td class="delete">
                            <a href="JavaScript:;">删除</a>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
    <div class="page">
        <ul>
            <li th:if="${selectOrder!=null&&order.getNavigatepageNums().length!=1}" th:each="datePage:${order.getNavigatepageNums()}" ><a th:href="@{'http://localhost:8080/administrator/selectOrderLikeDate?page='+${datePage}+'&date='+${selectOrder}}" th:text="${datePage}"></a></li>
            <li th:if="${selectOrder==null&&order.getNavigatepageNums().length!=1}" th:each="datePage:${order.getNavigatepageNums()}" ><a th:href="@{'http://localhost:8080/administrator/backstageAddcommodityJump?page='+${datePage}+'&date='+${selectOrder}}" th:text="${datePage}"></a></li>
        </ul>
    </div>
</div>
<!--底部-->

</body>
<!--jQ-->
<script src="../../static/js/jquery-3.3.1.min.js"></script>
<script src="../../static/js/bootstrap.min.js"></script>
</html>